home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.programming / comp.sys.amiga.programmer_25701_000014.msg < prev    next >
Encoding:
Internet Message Format  |  1994-11-27  |  1.5 KB

  1. Path: etek.chalmers.se!chalmers.se!sunic!mcsun!Germany.EU.net!ira.uka.de!rz.uni-karlsruhe.de!not-for-mail
  2. From: UKGV@DKAUNI2.BITNET (Dietmar Heidrich)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Memory allocation
  5. Message-ID: <1kobeq$1na@nz12.rz.uni-karlsruhe.de>
  6. Date: 3 Feb 93 11:48:42 GMT
  7. Sender: usenet@nz12.rz.uni-karlsruhe.de
  8. Organization: University of Karlsruhe, Germany
  9. Lines: 26
  10.  
  11. In article    <C1uCGL.KnD@unx.sas.com> Doug Walker wrote:
  12. > MEMF_PUBLIC does not mean anything.
  13. >
  14. > It has never meaned anything.
  15. >
  16. > It will never mean anything.
  17. >
  18. > This is because it is so badly misused that no system VM code could
  19. > ever take advantage of it.  Any VM additions to the OS will not use
  20. > the MEMF_PUBLIC bit.
  21.  
  22. I think I am going to correct this statement.  Here in Germany a public
  23. domain VRAM-Manager has been published by M*rkt & T*chn*k that is using
  24. this bit.  Memory allocated with MEMF_PUBLIC is not written to disk
  25. during swapping.  For all programmers, follow this instruction:
  26.  
  27. Allocate anything except ports and other structures that need to be
  28. shared by more than one process at the same time WITHOUT MEMF_PUBLIC.
  29. MEMF_PUBLIC means this piece of memory MUST stay where it is.  Memory
  30. allocated without public status is allowed to be swapped to disk.
  31. There is also the condition that the memory has to be FASTMEM.  CHIP
  32. memory cannot be swapped.
  33.  
  34. At least, using MEMF_PUBLIC with care and thought is a good style.
  35.  
  36. Dietmar Heidrich, Germany